﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace dsjsports
{
    public class Route : TreeViewItem
    {
        public string ToString()
        {
            return name;
        }
        public Route(string Name, string Type, string Rang, string Date, string Ground, string Organization)
        {
            this.name = Name;
            this.type = Type;
            this.rang = Rang;
            this.date = Date;
            this.ground = Ground;
            this.organization = Organization;
        }

        private static ObservableCollection<Protocol> protocolCollection = new ObservableCollection<Protocol>();
        public ObservableCollection<Protocol> ProtocolCollection
        {
            get { return protocolCollection; }
        }

       

        public void Add(Protocol protocol)
        {
            protocolCollection.Add(protocol);
        }

        public void Remove(Protocol protocol)
        {
            protocolCollection.Remove(protocol);
        }

        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private string type;
        public string Type
        {
            get { return type; }
            set { type = value; }
        }
        private string rang;
        public string Rang
        {
            get { return rang; }
            set { rang = value; }
        }
        private string date;
        public string Date
        {
            get { return date; }
            set { date = value; }
        }
        private string ground;
        public string Ground
        {
            get { return ground; }
            set { ground = value; }
        }
        private string organization;
        public string Organization
        {
            get { return organization; }
            set { organization = value; }
        }
    }
}
